/*
*************************************
* PocketGTT
*************************************
This file is part of PocketGTT.

PocketGTT is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

PocketGTT is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with PocketGTT.  If not, see <http://www.gnu.org/licenses/>.
*/

import QtQuick 1.0

Item {
//    color: "transparent"
    //    anchors.fill: parent
    //    anchors.centerIn: parent
    height: orario.height * 1.2
    width: orario.width * 1.2

    property string mytext: myWin.statesMan.fermata.getLineaOrarioByIndex(ListView.view.myIndex, index) // ""
    property bool realTime: myWin.statesMan.fermata.getLineaRealTimeByIndex(ListView.view.myIndex, index)

//    Component.onCompleted: {
//        console.log("start");
//        console.log(ListView.view.myIndex);
//        console.log(index);
//        console.log(realTime);
//    }

    Text {
        id: orario
        text: mytext
        font.pixelSize: (realTime) ? myWin.theme.textSizeS + 2 : myWin.theme.textSizeS
        color: "white"
        font.bold: realTime
        font.underline: realTime
//        color: (realTime) ? myWin.theme.violet_background : "white"
    }

}
